<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
#show {
	width: 600px;
	margin: 0px auto;
}

#show p {
	text-align: right;
}

#show  a {
	text-decoration: none;
	background-color: #EBEBEB;
	border: 1px solid #A5A5A5;
	color: black;
}

#show h1 {
	margin-bottom: 10px;
}

#show table {
	width: 400px;
	margin: 0px auto;
}

#show table tr td {
	text-align: center;
}
</style>
</head>
<body>
	<div id="show">
		<h1>唱片分类维护</h1>
		<p>
			<a href="Add">添加分类</a>
		</p>
		<table border="1">
			<thead>
				<tr>
					<td>分类ID</td>
					<td>分类名称</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="genre" items="${genres}">
					<tr>
						<td>${genre.id}</td>
						<td>${genre.name}</td>
						<td><a href="Update?id=${genre.id}">编辑</a> <a href="Delete?id=${genre.id}">删除</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>
